package com.lj.mcore.service;

import com.lj.mcore.dao.base.BaseAppDAO;
import com.lj.mcore.entity.GoodsType;
import com.lj.mcore.utils.PageBean;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class GoodsTypeservice implements IGoodsTypeservice{

    @Resource(name="goodsTypeDao")
    private BaseAppDAO<GoodsType> goodsTypeDao;

    @Override
    public boolean save(GoodsType obj) {
        return goodsTypeDao.save(obj);
    }

    @Override
    public boolean delete(Long id) {
        return false;
    }

    @Override
    public boolean update(GoodsType obj) {
        return goodsTypeDao.update(obj);
    }

    @Override
    public GoodsType getObjById(Long id) {
        return goodsTypeDao.findById(id);
    }

    @Override
    public GoodsType getSingleResult(Map<String, Object> map) {
        return goodsTypeDao.getSingleResult(map);
    }

    @Override
    public List<GoodsType> query(String paramString, Map paramMap, int paramInt1, int paramInt2) {
        return goodsTypeDao.query(paramString, paramMap, paramInt1, paramInt2);
    }

    @Override
    public PageBean getList(int pageSize, int page, Map<String, String> query) {
        return null;
    }
}
